/**
 * 引入基类
 */
 import BaseModule from './BaseModule'

 class TaskManager extends BaseModule {
    // constructor() {
    //     super()
    // }
    // 登录
    login(data){
        return this.post(`/login.php`, data, { ...this.dataMethodDefaults
        })
    }
    // 获得Echarts数据
    getChart(data) {
        return this.post(`/count.php`, data, { ...this.dataMethodDefaults
        })
    }
    //获取人员数据
    getList(data) {
        return this.post(`/config.php`, data, { ...this.dataMethodDefaults
        })
    }
    //获得选项列表
    getOption(data){
        return this.post(`/selectOption.php`, data, { ...this.dataMethodDefaults
        })
    }
    //新增用户
    addUser(data){
        return this.post(`/add.php`, data, { ...this.dataMethodDefaults
        })
    }
    addUser_temp(data){
        return this.post(`/add_temp.php`, data, { ...this.dataMethodDefaults
        })
    }
    changeState(data){
        return this.post(`/changeState.php`, data, { ...this.dataMethodDefaults
        })
    }
    //获取科室列表
    getDeptTreeList(data){
        return this.post(`/dept.php`, data, { ...this.dataMethodDefaults
        })
    }
    //获得科室中人员的信息
    getDeptTreeData(data){
        return this.post(`/dept copy.php`, data, { ...this.dataMethodDefaultsDept
        })
    }
    getExamineList(data){
        return this.post(`/examine.php`, data, { ...this.dataMethodDefaultsDept
        })
    }
    getHandleHistory(data){
        return this.post(`/handleHistory.php`, data, { ...this.dataMethodDefaultsDept
        })
    }
    addLoginUser(data){
        return this.post(`/add_user.php`, data, { ...this.dataMethodDefaultsDept
        })
    }
    addTransfer(data){
        return this.post(`/addTransfer.php`, data, { ...this.dataMethodDefaultsDept
        })
    }
    getTransferHistory(data){
        return this.post(`/select_transfer.php`, data, { ...this.dataMethodDefaultsDept
        })
    }
    getTurnList(data){
        return this.post(`/select_turn.php`, data, { ...this.dataMethodDefaultsDept
        })
    }
    InsertTurnList(data){
        return this.post(`/insert_turn.php`, data, { ...this.dataMethodDefaultsDept
        })
    }
   ConfigTurnList(data){
     return this.post(`/config_turn.php`, data, { ...this.dataMethodDefaultsDept
     })
   }
   getMessage(data){
     return this.post(`/getMessage.php`, data, { ...this.dataMethodDefaultsDept
     })
   }
   setMessage(data){
     return this.post(`/setMessage.php`, data, { ...this.dataMethodDefaultsDept
     })
   }
   getDynamicForm(data){
     return this.post(`/getDynamic.php`, data, { ...this.dataMethodDefaultsDept
     })
   }
   saveLayoutJSON(data){
     return this.post(`/saveLayout.php`, data, { ...this.dataMethodDefaultsDept
     })
   }
   getLayoutJSON(data){
     return this.post(`/getLayout.php`, data, { ...this.dataMethodDefaultsDept
     })
   }
   saveDynamic(data){
     return this.post(`/saveDynamic.php`, data, { ...this.dataMethodDefaultsDept
     })
   }
   uploadImg(data){
     return this.post(`/upload.php`, data, { ...this.dataMethodDefaultsDept
     })
   }
   getDict(data){
     return this.post(`/get_dict.php`, data, { ...this.dataMethodDefaultsDept
     })
   }
   getDeptList(data){
     return this.post(`/getDeptPeople.php`, data, { ...this.dataMethodDefaultsDept
     })
   }
   getDictionary(data){
     return this.post(`/getDictionary.php`, data, { ...this.dataMethodDefaultsDept
     })
   }
   getInfo(data){
     return this.post(`/select.php`, data, { ...this.dataMethodDefaultsDept
     })
   }
   deleteDynamic(data){
     return this.post(`/deleteDynamic.php`, data, { ...this.dataMethodDefaultsDept
     })
   }
   generateExcel(data){
     return this.post(`/excel/generateExcel.php`, data, { ...this.dataMethodDefaultsDept
     })
   }
}
export default new TaskManager()
